package com.dpiinc.TechPage.user.setting

import android.annotation.SuppressLint
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import android.widget.ImageView
import android.widget.ScrollView
import com.dpiinc.TechPage.BaseActivity
import com.dpiinc.TechPage.R
import com.dpiinc.TechPage.video.BitmapUtil.calculateInSampleSize
import kotlinx.android.synthetic.main.activity_note_list.*


class HelperSetting :BaseActivity(){

    @SuppressLint("MissingInflatedId")
    override fun onCreate(savedInstanceState: Bundle?) {
        setContentView(R.layout.activity_helper)
        super.onCreate(savedInstanceState)
        setBackWhite()
        val helperTipIv = findViewById<ImageView>(R.id.iv_helper_tip)
        val options: BitmapFactory.Options = BitmapFactory.Options()
        options.inSampleSize = calculateInSampleSize(options, 500, 500)
        options.inJustDecodeBounds = false
        val smallBitmap: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.help_tip, options)
        helperTipIv.setImageBitmap(smallBitmap);
    }

    override fun setBackWhite() {
        if (toolbar != null) {
            toolbar.setNavigationIcon(R.drawable.toolbar_back)
            toolbar.setTitleTextColor(resources.getColor(R.color.color_151515))
        }
    }
}